package com.lvyq.javaprint.service;

import cn.hutool.json.JSONUtil;
import com.lvyq.javaprint.common.GlobalCode;
import com.lvyq.javaprint.model.PrintData;
import com.lvyq.javaprint.ws.WebSocketServer;
import org.apache.pdfbox.pdmodel.PDDocument;
import org.apache.pdfbox.printing.PDFPageable;
import org.springframework.web.multipart.MultipartFile;

import javax.print.PrintServiceLookup;
import javax.print.attribute.HashPrintRequestAttributeSet;
import javax.print.attribute.PrintRequestAttributeSet;
import java.awt.print.PrinterException;
import java.awt.print.PrinterJob;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;

/**
 * @author lvyq
 * @version 1.0
 * Create by 2024-08-06 16:16
 */
public class TextPrintService implements PrintService {


    @Override
    public void print(String text, PrintData data) {
        System.out.println("TextPrintService>>text>"+text);
    }

    @Override
    public void print(InputStream inputStream, PrintData data) {
        System.out.println("TextPrintService>>inputStream>"+inputStream);
    }

    @Override
    public void print(MultipartFile multipartFile, PrintData data) {

    }

    @Override
    public void print(File file, PrintData data) {

    }

    @Override
    public void print(URL url, PrintData data) {

    }
}
